<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>指定数组获取对象keyValue</title>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script> -->
    <script src="lodash.min.js"></script>
    <script src="../helpers/bing.js"></script>
  </head>
  <body>
    <script>

      const data = {
        TWENTYFOUR_RANGE_00001499_GROUPS: [
          [
            1, 2, 3, 6, 7, 8, 9, 13, 15, 16, 19, 20, 23, 30, 34, 36, 37, 38, 39,
            40, 43, 45, 46, 48,
          ],
          [
            4, 5, 10, 11, 12, 14, 17, 18, 21, 22, 24, 25, 26, 27, 28, 29, 31,
            32, 33, 35, 41, 42, 44, 47, 49,
          ],
        ],
        TWENTYFOUR_RANGE_00001500_GROUPS: [
          [
            3, 5, 7, 8, 9, 10, 18, 19, 20, 21, 22, 23, 24, 25, 26, 30, 32, 34,
            35, 38, 39, 43, 47, 49,
          ],
          [
            1, 2, 4, 6, 11, 12, 13, 14, 15, 16, 17, 27, 28, 29, 31, 33, 36, 37,
            40, 41, 42, 44, 45, 46, 48,
          ],
        ],
      };

      const keysToPick = [
        "TWENTYFOUR_RANGE_00001499_GROUPS",
        "TWENTYFOUR_RANGE_00001500_GROUPS",
      ];

      const result = _.pick(data, keysToPick);

      console.log(result);
    </script>
  </body>
</html>
